﻿using System;
namespace CXedu.Model
{
	///<summary>
	///
	///</summary>
	public class PhotoImgs : ModelBase<int>
	{
		#region 成员字段
		
		private string _bigSrc = String.Empty;
		private int _cId = default(Int32);
		private DateTime _inDate = DateTime.Now;
		///<summary>
		///插入时间查询区间值
		///</summary>
		private DateTime[] _inDatespan = null;
		private string _inUser = String.Empty;
		private string _linkUrl = String.Empty;
		private string _smallSrc = String.Empty;
        private int _sort = default(Int32);
		private string _summary = String.Empty;
		
		#endregion
		
		#region 构造方法
		
		public PhotoImgs() { }
		
		#endregion
		
		#region 成员方法
		
		public override int GetHashCode()
		{
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			sb.Append(this.GetType().FullName);
			sb.Append(_bigSrc);
			sb.Append(_cId);
			sb.Append(_inDate);
			sb.Append(_inUser);
			sb.Append(_linkUrl);
			sb.Append(_smallSrc);
			sb.Append(_sort);
			sb.Append(_summary);
			return sb.ToString().GetHashCode();
		}
		
		#endregion
		
		#region 成员属性
		
		///<summary>
		///原始图片
		///</summary>
		public string BigSrc
		{
			get
			{
				return _bigSrc;
			}
			set
			{
				_bigSrc = value;
			}
		}
		///<summary>
		///关联ID
		///</summary>
		public int CId
		{
			get
			{
				return _cId;
			}
			set
			{
				_cId = value;
			}
		}
		///<summary>
		///插入时间
		///</summary>
		public DateTime InDate
		{
			get
			{
				return _inDate;
			}
			set
			{
				_inDate = value;
			}
		}
		///<summary>
		///插入时间查询区间值
		///</summary>
		public DateTime[] InDatespan{
			get
			{
				return _inDatespan;
			}
			set
			{
				_inDatespan = value;
			}
		}
		///<summary>
		///插入人
		///</summary>
		public string InUser
		{
			get
			{
				return _inUser;
			}
			set
			{
				_inUser = value;
			}
		}
		///<summary>
		///链接地址
		///</summary>
		public string LinkUrl
		{
			get
			{
				return _linkUrl;
			}
			set
			{
				_linkUrl = value;
			}
		}
		///<summary>
		///缩略图片
		///</summary>
		public string SmallSrc
		{
			get
			{
				return _smallSrc;
			}
			set
			{
				_smallSrc = value;
			}
		}
		///<summary>
		///排序
		///</summary>
		public int Sort
		{
			get
			{
				return _sort;
			}
			set
			{
				_sort = value;
			}
		}
		///<summary>
		///简介
		///</summary>
		public string Summary
		{
			get
			{
				return _summary;
			}
			set
			{
				_summary = value;
			}
		}
		
        /// <summary>
        /// 自定义查询条件
        /// </summary>
        public string CustomWhere { get; set; }
		
		#endregion
	}
		
	public static class PhotoImgsHash
	{
		public const string TopNum = "TopNum";
		public const string OrderField = "OrderField";
		public const string OrderDirection = "OrderDirection";
		public const string BigSrc = "BigSrc";
		public const string CId = "CId";
		public const string Id = "Id";
		public const string InDate = "InDate";
		public const string InUser = "InUser";
		public const string LinkUrl = "LinkUrl";
		public const string SmallSrc = "SmallSrc";
		public const string Sort = "Sort";
		public const string Summary = "Summary";
		
        public const string CustomWhere = "CustomWhere";
	}
}